/* 登录、注册、找回密码共用样式 */
.main-container {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.box-card {
  width: 90%;
  max-width: 520px; /* 注册页稍宽 */
  border-radius: 20px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  background: #ccc;
  z-index: 1;
  margin: 20px 0; /* 增加上下间距 */

}



.main-form {
  padding: 0 2.5rem 1.5rem;
}

.logo {
  text-align: center;
  margin-bottom: 2rem;
}
.logo img {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.logo h1 {
  color: #212529;
  font-size: 1.8rem;
  margin: 0;
  font-weight: 500;
}

/* 其他共用样式... */

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 1.5rem;
}

.half-width {
  flex: 1;
}

.type-select {
  width: 100%;
}

@media (max-width: 768px) {
  .login-card {
    width: 95%;
    border-radius: 12px;
  }

  .logo img {
    width: 60px;
    height: 60px;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  .login-form {
    padding: 0 1.5rem 1rem;
  }

  .el-input,
  .el-select {
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }

  .half-width {
    width: 100%;
  }
}

.login-btn {
  width: 100%;
  height: 45px;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.register-btn {
  width: 100%;
  height: 45px;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.footer-links {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.link {
  color: #606266;
  text-decoration: none;
  transition: color 0.3s;
}

.link:hover {
  color: #409EFF;
}

.divider {
  color: #dcdfe6;
  margin: 0 1rem;
}
